<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    var peopleAwareOfSecret = function(n, delay, forget) {
    const MOD = 1000000007;
    const arr = Array(n).fill(0);
    arr[0] = 1;
    for(let i = 1; i < n; i++){
        if(i >= delay){
           let temp = 0;
           for(let j = 0; j < i; j++){
                if( i - j >= forget){
                   arr[j] = 0;
                }
                if(arr[j] > 0 && i - j >= delay){
                  temp += arr[j]; 
                }
           }
           arr[i] = temp % MOD ;
        }
    }
    return _.sum(arr) % MOD;
};
  </script>
</body>
</html>